Skip to main content
GET
/
api
/
categorias
/
{nombre}
Get Category
curl --request GET \
  --url https://api.example.com/api/categorias/{nombre}
{
  "200": {},
  "404": {},
  "categoria_id": 123,
  "nombre": "<string>",
  "slug": "<string>",
  "productos": [
    {
      "producto_id": 123,
      "nombre": "<string>"
    }
  ]
}

Authentication

This endpoint does not require authentication.

Path Parameters

nombre
string
required
The name of the category to retrieve

Response

Returns a single category object.
categoria_id
long
Unique identifier for the category
nombre
string
Category name
slug
string
URL-friendly category identifier
productos
array
List of products in this category

Response Example

{
  "categoria_id": 1,
  "nombre": "Electronics",
  "slug": "electronics",
  "productos": [
    {
      "producto_id": 101,
      "nombre": "Laptop"
    },
    {
      "producto_id": 102,
      "nombre": "Smartphone"
    }
  ]
}

Request Example

curl -X GET https://api.iquea.com/api/categorias/Electronics

Status Codes

200
OK
Successfully retrieved the category
404
Not Found
Category with the specified name does not exist